package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbSpecificationOptionMapper;
import com.dongdongshop.pojo.TbSpecificationOptionExample;
import com.dongdongshop.service.TbSpecificationOption;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
@org.springframework.stereotype.Service
public class TbSpecificationOptionServiceImpl implements TbSpecificationOption {

    @Autowired
    private TbSpecificationOptionMapper TbSpecificationOption;

    @Override
    public List<com.dongdongshop.pojo.TbSpecificationOption> getSpecOptionInfo(Long id) {
        TbSpecificationOptionExample toe = new TbSpecificationOptionExample();
        TbSpecificationOptionExample.Criteria criteria = toe.createCriteria();
        criteria.andSpecIdEqualTo(id);
        List<com.dongdongshop.pojo.TbSpecificationOption> list = TbSpecificationOption.selectByExample(toe);
        return list;
    }
}
